<div class="parsys fullWidthPar">
  <div class="carousel">
    <div class="mod mod-carousel skin-carousel-centered">
      <div id="nb-carousel_1" class="carousel slide">

        <!-- Wrapper for slides -->
        <div class="carousel-inner" role="toolbar">
          <?php
          if (!empty($banner)) {
            foreach ($banner as $k => $item) {
              $class = $k == 0 ? 'active' : '';
              $image = !empty($item->field_field_banner_image[0]['raw']) ? file_create_url($item->field_field_banner_image[0]['raw']['uri']) : '';
              $moblieImage = !empty($item->field_field_banner_mobile_image[0]['raw']) ? file_create_url($item->field_field_banner_mobile_image[0]['raw']['uri']) : '';
              $link = !empty($item->_field_data['nid']['entity']->field_link[LANGUAGE_NONE][0]) ? $item->_field_data['nid']['entity']->field_link[LANGUAGE_NONE][0] : '';
              $bottonText = !empty($item->field_field_banner_button_text[0]['raw']) ? $item->field_field_banner_button_text[0]['raw']['value'] : '';
              ?>
              <div class="item <?= $class ?> ga-carousel-banner-container" title="<?= $item->node_title ?>">
                <picture class="mood-image">
                  <img src="<?= $image ?>"  alt="" title="" class="hidden-xs"  >
                  <img src="<?= $moblieImage ?>" class="visible-xs"  alt="" title="">
                </picture>
                <div class="carousel-caption">
                  <div class="wrapper">
                    <div class="content">
                      <h3 class="b"><?= $item->node_title ?></h3>
                      <p><?= $item->field_body[0]['raw']['value'] ?></p>
                    </div>
                    <?php if (!empty($link['title'])) {
                      ?>
                      <div class="buttons">
                        <a href="<?= $link['url'] ?>" class="button grey ga-button-primaryAction"
                           id="button_primaryAction_1_caaefdedfe0b875de7a7cee948ca1701"
                           title="Discover" tabindex="-1"><?= $link['title'] ?></a>
                      </div>
                      <?php
                    }
                    ?>
                  </div>
                </div>
              </div>
              <?php
            }
          }
          ?>
        </div>
      </div>
    </div>
  </div>
</div>